package ai.people.netmon.telegram.mapper;

import ai.people.netmon.framework.domain.telegram.vo.attribution.Attribution;
import ai.people.netmon.framework.domain.telegram.vo.attribution.PhoneAttribution;
import ai.people.netmon.telegram.domain.request.attribution.AttributionRequest;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 属性映射器
 *
 * @author yuanqinglong
 * @date 2022/1/18 11:09
 */
@Mapper
public interface AttributionMapper {


    /**
     * 电话归属
     *
     * @param attributionRequest 页面关键字请求
     * @return {@link List}<{@link PhoneAttribution}>
     */
    List<PhoneAttribution> phoneAttributionList(AttributionRequest attributionRequest);

    /**
     * 电话归属统计
     *
     * @param attributionRequest 页面关键字请求
     * @return {@link List}<{@link PhoneAttribution}>
     */
    long phoneAttributionCount(AttributionRequest attributionRequest);


    /**
     * 地理定位
     *
     * @param attributionRequest 页面关键字请求
     * @return {@link List}<{@link Attribution}>
     */
    List<Attribution> addressTargetingList(AttributionRequest attributionRequest);

    /**
     * 地理定位统计
     *
     * @param attributionRequest 页面关键字请求
     * @return {@link List}<{@link Attribution}>
     */
    long addressTargetingCount(AttributionRequest attributionRequest);
}
